package com.wd.mylibrary_base.socket;


/**
 * @Title:
 * @ClassName: com.wd.base.utils.socket.wsmanager.WsStatus.java
 * @author: lowrance
 * @date:  2022/9/21 18:01
 * @Description:    WebSocket的状态监听
 *
 */
public class WsStatus {

  public final static int CONNECTED = 1;
  public final static int CONNECTING = 0;
  public final static int RECONNECT = 2;
  public final static int DISCONNECTED = -1;

  class CODE {

    public final static int NORMAL_CLOSE = 1000;
    public final static int ABNORMAL_CLOSE = 1001;
  }

  class TIP {

    public final static String NORMAL_CLOSE = "normal close";
    public final static String ABNORMAL_CLOSE = "abnormal close";
  }
}
